package zhuyingying20240318;

/**
 * @Package:zhuyingying20240318
 * @Author:zhuyingying
 * @Created:2024/3/1821:22
 */
public class Square extends Diagram {
    public double width;
    public double height;

    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        width = width;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double squareArea(){
        return this.width*this.height;
    }
    @Override
    public void draw(){
        super.draw();
    }

}
